package com.zq;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @Author:任人渐疏
 * @Date:Created in 2:11 下午 2020/6/27
 * Update:true
 */
public class test {
    public static void main(String[] args) throws  Exception{
        SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        String format = sdf.format(new Date());
        Date parse = sdf.parse(String.valueOf(format));
        System.out.println("sdf.par"+parse);
        System.out.println("tostirng"+new Date().toString());
        System.out.println("sdf"+format);
        System.out.println(new Date());
    }
}
